/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
} 

.netlify_game{
  margin-top: 20px;
  margin-bottom: 30px;
}

.explore_other_games_container{
  margin-top: 100px;
  background: linear-gradient(135deg, #FF0080 0%, #8000FF 100%) !important;
  padding: 20px;
  border-radius: 5px;

}

.explore_other_games_container button{
  margin: auto;
  display: flex;
  margin-top: 10px;
  font-size: 1.1rem;
}

.explore_other_games_section_title{
  text-align: center;
  color: white;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
}

 
.feedback-section{
  margin-top: 30px;
  color: #333 ;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 200;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}

.form_header{
  font-size: 1.3rem;
}

.header_two{
  background-color: white !important;
}

.feedback-section p{
  color: #333 !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  margin-bottom: 18px !important;
}

.form-row label{
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.form-row input{
  font-size: 1rem;
  color: #333;
  width: 30rem;
  margin-bottom: 10px;
}

.message{
  width: 25rem;
}

.feedback-section button {
  padding: .6em 1.2em;
  border: none;
  background: #007BFF;
  color: #fff;
  border-radius: .25em;
  cursor: pointer;
}
.feedback-section button:hover {
  background: #0056b3;
}

/* ---------- PREVIEW SECTION ---------- */
.preview-section {
  background: #e0f7fa;
  text-align: center;
  padding: 20px 0;
}
.official_tn {
  width: 12rem; 
  margin-bottom: 10px;
  margin-right: 20px;
}

.official_tn:hover {
  width: 13rem; 
  margin-bottom: 10px;
  margin-right: 20px;
}

.preview-message {
  font-size: 1.2rem; color: #333;
}
.preview-link {
  color: #006eff; text-decoration: underline;
}
  
.hidden{
  display: none !important;
}

.hide{
  display: none !important;
}

body {
  line-height: 1.6;
  background-color: white !important;
}

.hero {
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) !important;
  color: white;
}

.second_header_bg{
  background-color: white !important;
}

/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
}

.logo__link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  width: 60px;
}

.logo_text {
  font-size: 2rem;
  font-weight: 800;
  margin-left: 10px;
  color: white;
}

.menu{
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu__link {
  margin-left: 20px;
  font-size: 1.2rem;
  font-weight: 600 ;
  position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu__link::after {
  content: "";
  position: absolute;
  bottom: -3px;  /* Adjust spacing below the text as needed */
  left: 0;
  width: 100%;
  height: 2px;
  background: rgb(255, 255, 255);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.menu__link:hover {
  font-size: 1.3rem;
}

.menu__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.login_link{
  background-color: #006eff;
  margin-left: 20px;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: rgba(51, 51, 51, 0.215) .5px solid;
  font-size: 1.1rem ;
  font-weight: 500;
  text-align: center;
  text-decoration: none !important;
}

.login_link:hover{
  background-color: #0a4a9e;
}

.create_game{
  background-color: #ff8c00 ;
  font-size: 1.1rem;
  padding: 8px 10px;
}

.create_game:hover{
  background-color: #c67109 ;
}

.logout_link{
  color: white;
  font-weight: 800;
  font-size: 1.1rem ;
  margin-left: -5px;
}

.logout_link_resource{
  color: #333;
}
.logout_link_resource:hover{
  color: rgb(146, 145, 145);
}

.logged_in_links{
  display: flex !important;
}

.login_greeting{
  margin-left: 30px;
  font-size: 1.2rem;
}

.logo_text_resource {
  font-size: 2.5rem;
  font-weight: 900 !important;
  margin-left: 10px;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
  font-family: 'Poppins', sans-serif !important;
}

.login_link_resource {
  padding: 8px 16px;
  border-radius: 11px;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: rgba(51, 51, 51, 0.215) .5px solid;
}

.login_link_resource:hover{
  background: linear-gradient(135deg, #5736a4, #a049a3);
  color: rgb(232, 230, 230);
  font-size: 1.2rem;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.menu_resource{
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu__link_resource {
  position: relative;
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  font-weight: 900;
}

.menu__link_resource::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Position the underline slightly below the text */
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  transform: scaleX(0); /* Hide the underline initially */
  transition: transform 0.3s ease; /* Smooth transition */
  transform-origin: left; /* Start the underline from the left */
}

.menu__link_resource:hover::after {
  transform: scaleX(1); /* Show the underline on hover */
}

/* —— USER DROPDOWN —— */
.user-dropdown {
  position: relative;
  display: inline-block;
}
  
/* Pill-shaped trigger */
.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(255, 0, 195) !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.1rem !important;
  color: rgb(255, 255, 255);
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, background 0.3s;
  margin-left: 20px;
}
.user-dropdown-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: rgb(171, 8, 133) !important;
}

.user-dropdown-btn_index {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(255, 255, 255) !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.1rem !important;
  color: #333;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, background 0.3s;
  margin-left: 20px;
}
  
/* Email text styling */
.user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: inline-block;
}
  
/* Ensure the dropdown menu is hidden by default */
.user-dropdown-menu, 
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When the dropdown button is focused, display the dropdown menu */
.user-dropdown-btn:focus + .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optionally, if any item inside the menu receives focus, keep it open */
.dropdown-menu:focus-within {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optional arrow styling */
.arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  color: #666;
}

/* When .open class is applied, show the dropdown menu */
.user-dropdown-menu.open,
.dropdown-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* rotate when open */
.user-dropdown-btn.open .arrow-icon {
  transform: rotate(180deg);
}
  
/* Floating menu */
.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.user-dropdown-menu li {
  margin: 0;
  text-decoration: none;
}
.user-dropdown-menu li + li {
  border-top: 1px solid #eee;
  text-decoration: none;
}
.user-dropdown-menu a,
.user-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: #c1bfbf9c;
}
  
/* Show menu when not hidden */
.user-dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

.favorite-icon {
  position: static;
  cursor: pointer;
  width: 30px;    /* keeps your star at 30×30px */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-icon .favorite-star {
  width: 100%;
  height: 100%;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;    /* tweak to taste */
  margin-top: 10px;
  border-top: 1px solid #eee;  /* optional separator line */
}

.card-worth {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

/* make all .card images fill their container,
   crop them center-focus, and cap their height */

.card  {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.card img {
  width: 100% !important;
  object-fit: cover;  /* center-crop the image */
  display: block;
  border-bottom: 1px solid var(--color-bg);
}

.card-name{
  font-weight: 400;
  font-size: 1rem;
  margin-top: 5px;
}

.card-worth{
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(236, 22, 226) !important;
}

/* —— “Pill” Link Styling —— */
.pill-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-left: 1rem;
  background: var(--color-accent, #f6f6f6);
  color: #454545;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: #6b6b6b solid 1px;
  border-radius: 10px;
}

.shop_link{
  font-size: 1.4rem;
}
  
.resource-info-box {
  margin: 0;   /* remove any auto top-margin */
}

/* you can move this into cdb.css */
.points-pill.hidden       { display: none; }
.points-pill .cta-link    {
  color: var(--color-primary, #ff00b3);
  font-weight: 600;
  text-decoration: none;
}

/* ── Game-Over Reward Section ────────────────────────────────────────── */

.reward-box {
  /* full-width wrapper with some breathing room */
  width: 100%;
  margin: 2rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.reward-card {
  /* card-style container */
  position: relative;
  width: 90%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.10);
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.reward-btn {
  cursor: pointer;
  background: #fff;
  color: #047857;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 2rem !important;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover just in case they mouse-over */
.reward-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Pulse keyframes (single canonical definition) */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Utility: hide by default */
.hidden { display: none !important; }

#resource_directions_sign_in a{
  color: rgb(254, 69, 2) !important;
  font-size: 1.5rem;
  margin-top: 10px;
}

.go_reward{
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.reward-text {
  font-size: 2rem !important;
  font-weight: bold;
  text-align: center;
  color: white;
  padding: 1rem;
  border-radius: 12px;
}

#resource_directions_sign_in a:hover{
  color: rgb(188, 208, 9) !important;
  margin-top: 10px;
}
#resource_directions_sign_in a {
  color: rgb(229, 255, 0) !important;
  font-size: 1.5rem;
  margin-top: 10px;
  animation: pulse 1.5s infinite;
  font-weight: 800;
  display: inline-block; /* ensures transform works */
}

.favorite-star {
  width: 30px;
  height: 30px;
  transition: 0.2s ease;
}
.favorite-star:hover {
  transform: scale(1.1);
}
  
.resource-card {
  position: relative;
}
  
/* little pointer triangle */
.user-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1rem;
  border: 6px solid transparent;
  border-bottom-color: #fff;
}

/* hide hamburger & mobile menu on desktop */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* Hero Section */
#hero-section {
  text-align: center;
  padding: 40px 20px;
  color: white;
  padding: 35px 20px;
  position: relative; /* Enables stacking of child elements */
  background-color: #000 !important;
}

#hero-section h1 {
  font-size: 4rem;
}

.tagline{
  font-size: 1.7rem !important;
  font-weight: 300;
}

/* Styled Dropdown */
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}
  
/* Trigger button styling */
.user-dropdown-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
  
/* Arrow rotate when open */
.user-dropdown-btn[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}
  
/* The menu itself */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 160px;
  z-index: 1000;
}
  
/* Menu items */
.dropdown-menu li {
  margin: 0;
}
.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #f0f0f0;
}
  
/* Show on hover or focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown:hover .user-dropdown-btn,
.dropdown:focus-within .user-dropdown-btn {
  outline: none;
}

/* hide hamburger on desktop */
#menu-toggle,
.menu-toggle {
  display: none;
}

.styled-dropdown {
  position: relative;
  width: 550px;
  margin: 20px auto;
  z-index: 10; /* Ensures dropdown overlays testimonials */
}

.input-container {
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #006eff;
  font-size: 1.2rem;
}

.chosen-value {
  width: 100%;
  padding: 12px 12px 12px 40px; /* Adjusted padding to make room for the icon */
  font-size: 1rem;
  border-radius: 30px;
  border: 2px solid #fea501;
  transition: background-color 0.3s;
}

.chosen-value:hover, .chosen-value:focus {
  background-color: rgb(76, 76, 76);
  color: white;
}

.value-list {
  position: absolute;
  top: 50px;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: none;
  background-color: white;
}

.value-list.open {
  display: block;
}

.value-list li {
  padding: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  font-weight: 300;
  transition: background-color 0.3s, color 0.3s;
}

.value-list li:hover {
  background-color: rgb(76, 76, 76);
  color: white;
}

/* Typing Animation for Placeholder */
@keyframes typing {
  0%, 100% { width: 0; }
  50% { width: 100%; }
}

#animated-placeholder::placeholder {
  animation: typing 2s steps(30, end) infinite;
  color: #6d6d6d;
}

/* Testimonial Carousel */
.testimonial-carousel {
  margin-top: 30px !important;
  width: 60%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 100px; /* Account for 2-line testimonials */
}

.testimonial {
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-size: 1rem;
  color: #ffecb3;
}

/* Modern Points Section */
.modern-points {
  background: rgb(209, 221, 220) ;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
  
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
  
.points-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  align-items: center;
}
  
.points-list li {
  flex: 1;
  max-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  min-height: 250px; /* or whatever height fits your content */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.points-list li:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
  
.points-list img {
  width: 50px;
  margin-bottom: 10px;
}
  
.points-list p {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.create-builder-cta {
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  border-radius: 20px;
  padding: 50px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}
  
.create-builder-cta h2 {
  padding-top: 10px;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
  
.create-builder-cta .supporting-hero-text {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
  
.create-builder-cta .cta-button {
  background-color: #007bff !important;
  color: white;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}
  
.create-builder-cta .cta-button:hover {
  background-color: #d17200;
}

/* ── LOGIN MODAL ─────────────────────────────────────────────────────────── */
.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
  
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}
  
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.3s;
}
.modal.open .modal-content { transform: scale(1); }
  
.modal-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
}
  
.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.modal-content ul {
  text-align: left;
  margin: 1rem 0;
}
.modal-content .btn {
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  color: #fff;
  border: none; border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
}
  
/* ── HOME DASH ───────────────────────────────────────────────────────────── */
.home-dash {
  background: #f9f9f9;
  padding: 2rem 1rem;
  border-radius: 12px;
  margin: 2rem auto;
}
.home-dash .section_title {
  font-size: 2.5rem;
}

.cta-button_home_dash{
  background-color: #006eff;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 20px;
}

.home-dash_cta{
  margin-bottom: 200px;
}

#favorites-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.favorites_heading{
  font-weight: 400;
}

#dash-username{
  color: rgb(255, 213, 0);
}
  
/* make sure the card container is positioned relative */
.app_item {
  position: relative;
}

/* the delete button */
.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.delete-btn:hover {
  background-color: #c0392b;
}
  
/* ===============================
   Resource Directions (updated)
   =============================== */
.resource_directions{
  position: relative;
  text-align: center;
  padding: clamp(28px, 4vw, 48px);
  
  /* Gradient background with subtle glow */
background: radial-gradient(1200px 600px at 20% -10%, rgba(255,46,160,.10), transparent 60%),
            radial-gradient(900px 500px at 85% 10%, rgba(122,44,255,.10), transparent 65%),
            linear-gradient(#0c0e13, #0b0d12),
            #0e0f14;

  
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}



/* Apps Section */
.apps_section {
  text-align: center;
  padding: 20px;
  background: #fff;
  margin: 20px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.section_title {
  margin-top: 40px;
  font-size: 2.3rem;
  color: #333;
  font-weight: 700;
}

.section_sub_title{
  margin-top: 45px;
  font-size: 2.7rem;
  color: #333;
  font-weight: 700;
}

.section_sub_title_description{
  font-size: 1.2rem;
  font-weight: 300;
  color: #666666;
}

.subscribe_prompt {
  font-size: 1.3rem;
  color: #666;
  margin-top: 10px;
  text-align: center;
  font-weight: 300;
}

.subscribe_button_freemium{
  font-size: .9rem !important;
  padding: 7px 30px !important;
  margin: 10px auto !important;
}

/* Style for the "Subscribe Now" link on index.html */
.subscribe-now-link {
  display: inline-block; /* Allows control over width and padding */
  text-align: center;
  padding: 10px 20px;
  background-color: #ffd500; /* Button color */
  color: #333; /* Text color */
  font-size: 1.2rem !important;
  font-weight: 400;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for a button effect */
  width: max-content; /* Restricts width to content size */
  margin: 0 auto; /* Center alignment */
}

.subscribe-now-link:hover {
  background-color: #ff9e00; /* Hover color for the button */
}

.section_title_underline {
  height: 3px;
  width: 60px;
  background-color: #FF0091;
  margin: 10px auto;
}

.section_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.app_item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: box-shadow 0.3s;
}

.app_item a{
  text-decoration: none;
}

.app_item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app_image {
  width: 100%;
  object-fit:cover;
  min-height: 250px;
  max-height: 250px;
}

.app_title {
  font-size: 1.4rem;
  color: #333;
  padding: 15px 10px;
}

/* Premium Apps Section */

.apps_title_premium{
  font-weight: 500;
  color: #ffd500;
}

.apps_section_premium {
  background-color: #333;
  padding: 30px;
}

.premium_message {
  font-size: 1.3rem;
  font-weight: 300;
  color: white;
  text-align: center;
  margin-top: 10px;
}

.premium .app_item {
  background-color: #444;
  position: relative;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.premium:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(255, 213, 0, 0.3);
}

.app_item.premium {
  position: relative; /* Allows the star icon to be positioned relative to the article container */
}

.premium-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffd500;
  font-size: 2rem;
  display: block; /* Ensure the icon is always visible */
  z-index: 1; /* Make sure the icon stays on top */
}

.learn_more {
  background-color: #2c2c2c;
  text-align: center;
  padding-top: 10px;
}

.learn_more a {
  font-size: 0.9rem;
  color: #ffae00;
  text-decoration: underline;
  font-weight: 300;
}

.learn_more a:hover {
  color: #ff9e00;
}

.subscribe_button {
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  text-align: center;
  transition: background 0.3s;
}

.subscribe_button:hover {
  background: linear-gradient(135deg, #ffb600, #ff7900);
}

.game_description_skills_covered{
  margin-top: 20px;
  font-size: 2rem;
  font-weight: 700;
}

/* Game Over Screen Styles */
#gameOverScreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%)  !important;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  margin: 40px auto;
}

#gameOverScreen h2 {
  font-size: 2.8rem;
  color: #fcf017;
  margin-bottom: 20px;
}

#gameOverScreen p {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 8px;
  max-width: 80%;
  text-align: center ;
}

#gameOverScreen a{
  margin-top: -5px !important;
  margin-bottom: 30px;
}

.enjoyed_a_sample_text{
  text-align: center;
  margin: auto;
  font-size: 2.2rem !important;
}

.freemium-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
  align-items: center;
  text-align: center;
}

.freemium-option-card {
  background-color: white;
  color: #333;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 70%;
  text-align: center;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.freemium-option-card h3 {
  font-size: 2rem;
  color: #6A0DAD;
  margin-bottom: 15px;
}

.freemium-option-card p {
  font-size: 1rem ;
  color: #666 !important;
  margin-bottom: 20px !important ;
}

.freemium-upgrade-btn, .freemium-subscribe-btn {
  background-color: #FF9F1C;
  color: white;
  padding: 12px 15px ;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.freemium-upgrade-btn:hover {
  background-color: #E68A17;
  transform: scale(1.05);
}

.freemium-subscribe-btn {
  background-color: #FF0062;
}

.freemium-subscribe-btn:hover {
  background-color: #C21F46;
  transform: scale(1.05);
}

.freemium-option-card .note {
  font-size: 0.9rem !important;
  color: #999;
  margin-top: 8px;
}

.freemium-option-card_subscribe{
  padding: 50px 10px !important;
}

.freemium-option-card_subscribe a{
  font-size: 1.5rem !important;
  color: white;
  padding: 12px 18px !important;
  font-weight: bold !important;
  border-radius: 8px ;
  border: 2px #333 solid !important;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 95%;
  text-decoration: none !important;
}

#gameOverScreen a {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 10px;
  text-decoration: underline;
  font-weight: 300;
}

#gameOverScreen a:hover {
  color: #e0dddd;
}

.game_over_full{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game_over_full h2{
  font-size: 5rem !important;
  font-weight: 900 !important;
}

.game_over_full button{
  font-size: 2rem !important;
  cursor: pointer;
  margin-top: 20px;
  padding: 10px 60px;
}

.game_description{
  margin-top: 15px !important;
  width: 95%;
  margin: auto;
  font-size: 1.7rem;
  text-align: center;
  font-weight: 300;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%)  !important;
  color: white;
  padding: 30px;
}

.game_description ul {
  margin-top: 25px;
}

.game_description ul li{
  font-size: 1.3rem ;
  list-style: none;
}

/* Games Grid */

.games-section,
.premium-section {
  margin: 40px 0;
}

.games-section h2{
  font-size: 2rem ;
  margin-top: 500px !important;
  color: white !important;
  text-align: center;
}

.explore_other_games_cta{
  color: white !important;
  margin-top: 70px;
  font-weight: 700;
  font-size: 2.3rem !important;
}

.explore_other_games_section_title{
  text-decoration: underline;
  font-size: 2rem;
  margin-top: 30px;
  font-weight: 500;
}

.explore_other_games_section_title_description{
  text-align: center;
  margin: auto;
  font-weight: 200;
  margin-bottom: 25px !important;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.game-item {
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: center !important;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.game-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.game-item a {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.game-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.game-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.game-details h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.game-details p {
  font-size: 1rem !important;
  color: #666 !important;
  text-align: center !important;
}

.view_more{
  font-size: 1.8rem;
  padding: 10px 25px;
  background: rgb(227, 9, 227);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.resource-info-box {
  position: relative;
  text-align: center;
}

.info-toggle:hover {
  background: #ffe9ff;
  color: #5c27aa;
}
  
.info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff8ff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  padding: 0 18px;      /* horizontal padding only */
  margin-top: 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
}
  
.info-content.open {
  max-height: 300px;    /* or large enough to contain your list */
}
  
.info-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
  
.info-content li {
  padding: 6px 0;
}
  
.info-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 0.90rem;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 600;
  text-decoration: underline;
}

/* Info Box Container */
.resource-info-box {
  margin-top: 10px;
  position: relative;
  text-align: center;
}
  
/* Hover effect on the toggle */
.resource-info-box .info-toggle:hover {
  background: #ffe9ff;
  color: #5c27aa;
}
  
/* Hide the info content by default */
.resource-info-box .info-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: #ffffff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  margin-top: 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
}
  
.resource-info-box .info-toggle {
  display: inline-block;
  cursor: pointer;      /* gives you the little hand on hover */
}
  
/* Show info content when hovering directly over the toggle */
.info-toggle:hover + .info-content {
  display: block;
  opacity: 1;
}
  
/* Show info content when toggle has a 'clicked' class */
.info-toggle.clicked + .info-content {
  display: block;
  opacity: 1;
}

/* —————————————————————————————
   Revamped ZPoints Pill
   ————————————————————————————— */
.points-pill {
  display: inline-flex;
  align-items: center;
  background: #000;               /* solid black pill */
  color: #fff;                    /* white text */
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;          /* fully pill-shaped */
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* golden glow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  user-select: none;
  margin: 0.5rem 0;
}

/* lightning emoji styling */
.points-emoji {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  transform: rotate(-15deg);
  display: inline-block;
}

/* hover “lift” effect */
.points-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

#pointsValue{
  margin-right: 7px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* — Pulsing ZPoints number — */
@keyframes pulse-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse-number {
  color: gold !important;          /* keep the text gold */
  text-shadow: 0 0 1px gold;       /* optional glow */
  animation: pulse-scale 1s ease-in-out infinite;
  display: inline-block;           /* allow transform */
}

.earned_zpoints_text{
  font-size: 2rem;
  margin-top: 15px;
  font-weight: 500;
}

.earned_zpoints{
  color: rgb(221, 255, 0);
  font-weight: 700;
}

.pulse-number {
  animation: pulse-scale 0.8s ease-in-out 3;
  color: gold !important;
}

/* --- Card tag row --- */
.card-link{ display:block; text-decoration:none; color:inherit; }
.card-tags{
  display:flex; flex-direction:column; gap:.55rem; margin-top:.4rem;
}

/* --- Reuse hero badge/chips visual language --- */
.grade-badge{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.42rem .75rem; font-weight:800; font-size:.9rem;
  color:#052e1a; border-radius:999px;
  background: rgb(255, 185, 236);
  box-shadow: 0 6px 16px rgba(0,0,0,.06), 0 0 0 4px rgba(34,197,94,.18);
  border:1px solid rgba(0,0,0,.06);
  margin-bottom: 10px;
}

.meta-chips{ display:flex; flex-wrap:wrap; gap:.35rem; align-items: center; justify-content: center;}
.chip{
  display:inline-flex; align-items:center; padding:.26rem .55rem;
  font-size:.78rem; font-weight:700; border-radius:999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* palette to match the hero */
.chip-purple { background:#ede9fe; color:#4c1d95; }
.chip-blue   { background:#e0f2fe; color:#075985; }
.chip-yellow { background:#fef9c3; color:#854d0e; }
.chip-pink   { background:#ffe4e6; color:#9f1239; }

/* small screens: tighter scale */
@media (max-width:640px){
  .grade-badge{ font-size:.85rem; padding:.38rem .65rem; }
  .chip{ font-size:.75rem; }
}

/* Hide legacy row if any remain */
.badge-row { display: none !important; }

/* Chip row */
.meta-chips{
  display:flex; flex-wrap:wrap; gap:8px;
}

/* Base chip size so Grade matches others */
.chip{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.85rem; line-height:1.2; 
  padding:.35rem .6rem; border-radius:999px; 
  white-space:nowrap;
}

/* Keep your colors; just adding a green for "grade" */
.chip-grade{ background:#e7f6ec; color:#1b7f3c; border:1px solid #ccebd8; }

/* Grid already good; ensure grid children stretch */
.section_grid { align-items: stretch; }

/* Card shell fills equal height */
.app_item{
  display:flex; flex-direction:column;
  border-radius:12px; /* keep your style */
  height:100%;
}

/* Make the link area fill vertical space */
.app_item > a{
  display:flex; flex-direction:column; gap:.5rem;
  flex:1 1 auto;
}

/* Consistent media box */
.app_image{
  width:100%;
  aspect-ratio:18/9;           /* keeps images same height */
  object-fit:cover; 
  border-radius:10px;
}

/* Clamp title & description to avoid tall cards from long text */
.app_title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.4em * 2); /* reserves space for 2 lines */
}

.homepage_game_description{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.15em * 3); /* ~3 lines reserved */
}

/* Footer sticks to bottom for all cards */
.card-footer{ margin-top:auto; }

/* Collapsible rows (works with chips or text) */
.collapsible{
  --clamp-lines: 3;
  position: relative;
  overflow: hidden;
}

.chip-green{
  background-color: #fcc2e8;
}

/* We’ll set max-height via JS once we know real line-height */
.collapsible.clamped::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2.2rem;
  /* fade-out mask; adjust background to match card bg if not white */
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events:none;
}

/* The toggle button that appears on overflow */
.collapsible-toggle{
  position:absolute; right:.25rem; bottom:.25rem;
  display:inline-flex; align-items:center; gap:.25rem;
  border:none; background:transparent; cursor:pointer;
  padding:.25rem .4rem; font-size:.85rem;
}

.collapsible-toggle .arrow{
  display:inline-block; transition: transform .2s ease;
}
.collapsible.expanded .collapsible-toggle .arrow{
  transform: rotate(180deg);
}

/* description: show 4 full lines with proper ellipsis */
.homepage_game_description{
  margin:8px 0 10px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;          /* was 3 */
  overflow:hidden;
  min-height: calc(1.5em * 4);   /* reserves space so it won't look cut off */
}

.info-content {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}
  
.info-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 400;
}

.info-content li {
  padding: 4px 0;
  font-weight: 700;
}

.info-content li span{
  padding: 4px 0;
  font-weight: 500;
  color: #006eff;
}

.info-content span li {
  padding: 4px 0;
  font-weight: 400;
}

.view_more:hover{
  background: linear-gradient(135deg, #503392, #a74daa);
}
  
.homepage_game_description {
  color: #666;
  font-size: 0.9rem ;
  padding: 0 10px 10px;
}

.homepage_section_title{
  color: #FFD504;
  font-size: 2rem;
  margin-top: 30px;
}

.homepage_section_description{
  color: white;
  font-weight: 200;
  font-size: 1.3rem;
}

.is_grade{
  font-style: italic;
  margin-top: 7px;
}

.is_grade_home{
  font-style: italic;
  margin-bottom: 7px;
  color: #333;
  font-size: .9rem;
  font-weight: 200;
}

/* Footer */
footer {
  background:white;
  color: #333;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

footer p{
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;   
  font-size: 1rem;
}

/* Modal Base Improvements */
/* Modal (hidden) */
.assign-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 90%; max-width: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;           /* ← add this */
  z-index: 1000;
}

/* Modal (visible) */
.assign-modal.expanded {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: auto;          /* ← and this */
}

.why-abz {
  background: #fff;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-abz h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #fb0097, #04a8f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card, .stat-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover, .stat-card:hover {
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  font-size: 5rem;
  margin: 0;
  font-weight: 700;
  color: #02050a;
}

.stat-card p {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2023;
  font-weight: 500;
}

.leaderboard {
  background: #118cde;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px #bae6fd;
}

.leaderboard h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.leaderboard ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.leaderboard li {
  background: #fff;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.leaderboard li span {
  font-weight: 700;
  margin-right: 0.75rem;
}

.leaderboard-cta {
  font-size: 2rem;
  background: #fff9c4;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: inline-block;
  font-weight: 600;
}

.leaderboard-cta a {
  text-decoration: none;
  color: #2563eb;
  margin-left: 0.25rem;
}

.leaderboard-section {
  background: #bedeff;
  border-radius: 12px;
  padding: 1rem;
  width: 70%;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.leaderboard-section h2{
  font-size: 3rem;
}

#leaderboard-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#leaderboard-list li {
  background: white;
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-size: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.stats{
  display: flex;
  justify-content: center !important;
  margin: auto;
  width: 100%;
  margin-bottom:100px;
  margin-top: 120px;
}

.icon img{
  width: 10rem !important;
}

.stat-card{
  background-color: #9ed5ff;
  width: 100%;
  margin-left: 10px;
}

.feature-card h3{
  font-size: 1.2rem !important;
}

/* ===== Impact Metrics (modern, clean) ===== */
.impact-metrics{
  margin-top: 100px !important;
  margin: 4rem auto 2rem;
  max-width: 1100px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}

.impact-head{
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.impact-head h3{
  font-size: 3rem !important;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #FF00A8 0%, #8000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .25rem;
}
.impact-head p{
  color:#5b5b5b;
  font-size: 1rem;
}

.metrics-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.metric{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .25rem 1rem;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid #ececec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.metric:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color:#e9e9e9;
}

.metric-icon{
  width: 40px;
  height: 40px;
  color:#7b61ff; /* subtle lilac to match brand gradient */
  grid-row: 1 / span 2;
}

.metric-value{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  color:#0f172a; /* slate-900 */
}

.metric-value .suffix{
  margin-left:.1em;
  font-weight: 800;
}

.metric-label{
  color:#525252;
  font-size: clamp(.9rem, 1.6vw, 1rem);
}

/* Optional thin separators between cards on large screens */
@media (min-width: 900px){
  .metrics-grid{
    gap: 1.25rem;
  }
}

/* kill the old stats look if it still exists */
.stats, .stat-card { display:none !important; }

/* Permanent gradient + continuous pulse */
.metric-value.celebrate {
  background: linear-gradient(90deg, #FF00A8 0%, #8000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gentle-pop 800ms ease-out 1, loop-pulse 2.2s ease-in-out infinite;
  will-change: transform, text-shadow;
}

.metric-icon { color: #9b6cff; transition: color .3s;}
/* tint icon when the number is celebrating */
.metric:has(.metric-value.celebrate) .metric-icon { color:#FF00A8; }

#impact-title{
  font-size: 2.8rem;
}

.impact-head p{
  font-size: 2.5rem;
  font-weight: 200;
}

.count{
  font-size: 3rem !important;
}

.metric-label{
  font-size: 1.5rem;
}
/* first-entry pop */
@keyframes gentle-pop {
  0% { transform: scale(1);   text-shadow: 0 0 0 rgba(128,0,255,0); }
  50%{ transform: scale(1.06); text-shadow: 0 0 16px rgba(128,0,255,.28); }
  100%{transform: scale(1);   text-shadow: 0 0 0 rgba(128,0,255,0); }
}

/* subtle, endless breathe + shimmer-y glow */
@keyframes loop-pulse {
  0%   { transform: translateY(0);      text-shadow: 0 0 0 rgba(128,0,255,0); }
  50%  { transform: translateY(-1px);   text-shadow: 0 0 10px rgba(128,0,255,.18); }
  100% { transform: translateY(0);      text-shadow: 0 0 0 rgba(128,0,255,0); }
}

/* optional: icon tint on hover to match */
.metric:hover .metric-icon { color:#6a55ff; }

.hidden{display:none !important;}

body.filtering .hide-when-filtering{display:none !important;}

/* hide entire grids that have zero visible cards while filtering */
body.filtering .apps_section .section_grid:empty,
body.filtering .apps_section .section_grid.no-matches{
  display:none !important;
}

/* status bar */
.filter-status{
  margin:18px 0 8px;
  padding:10px 12px;
  border-radius:12px;
  background:#faf7ff;
  border:1px solid #eee;
  font-weight:600;
}
.filter-status .clear-btn{
  float:right;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

/* ===== Hero (black 101015 with subtle vignette) ===== */


.login_button{
  background-color: #F6FF19 !important;
  font-weight: 700 !important;
}

.hero-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
}

/* copy */
.hero-copy h1{
  font-size: clamp(2.4rem, 5.3vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
}
.hero-copy .tagline{
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
  font-weight: 400;
  opacity:.95;
}

/* make the search stay centered on desktop but flexible on mobile */
.hero-copy .styled-dropdown{
  width: min(640px, 95%);
  margin: 22px 0 0;
}

/* testimonial width matches search */
.hero-copy .testimonial-carousel{
  width: min(640px, 95%);
  margin: 26px 0 0 !important;
}

/* visual */
.hero-visual{
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: end center;
}

/* hero art */
.hero-art{
  width: min(520px, 88vw);
  height: auto;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.35));
}

/* animated soft blobs */
.blob{
  position: absolute;
  border-radius: 32% 68% 58% 42% / 38% 32% 68% 62%;
  filter: blur(12px);
  opacity: .85;
  z-index: 1;
  animation: floaty 10s ease-in-out infinite alternate;
}

.halo{
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent 70%);
  bottom: 30px; right: 40px;
  filter: blur(24px);
  opacity: .55;
  animation: none;
  z-index: 0;
}

.blob-pink{
  width: 320px; height: 260px;
  right: 40px; bottom: 220px;
  background: radial-gradient(circle at 30% 30%, #ff7ac3, var(--pink));
  mix-blend-mode: screen;
  animation-duration: 9s;
}
.blob-purple{
  width: 360px; height: 300px;
  right: -20px; bottom: 60px;
  background: radial-gradient(circle at 65% 40%, #b18cff, var(--purple));
  mix-blend-mode: screen;
  animation-duration: 12s;
}
.blob-yellow{
  width: 260px; height: 220px;
  right: 210px; bottom: 100px;
  background: radial-gradient(circle at 40% 35%, #ffe88a, var(--yellow));
  mix-blend-mode: screen;
  animation-duration: 11s;
}

@keyframes floaty{
  from { transform: translateY(0) translateX(0) scale(1); }
  to   { transform: translateY(-18px) translateX(8px) scale(1.04); }
}

/* tiny spark accents */
.spark{
  position:absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, transparent 60%);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.6));
  z-index: 3;
  opacity:.7;
  animation: twinkle 2.2s ease-in-out infinite;
}
.spark::after{
  content:"";
  position:absolute; inset:-6px;
  border-radius:inherit;
  background:
    conic-gradient(from 0deg, transparent 0 25%, rgba(255,255,255,.35) 25% 30%, transparent 30% 55%, rgba(255,255,255,.35) 55% 60%, transparent 60% 100%);
  mask: radial-gradient(circle at 50% 50%, transparent 0 66%, #000 66%);
}
@keyframes twinkle{
  0%,100%{ transform: scale(1); opacity:.6; }
  50%{    transform: scale(1.25); opacity:1; }
}
.s1{ right: 60px;  bottom: 300px; }
.s2{ right: 260px; bottom: 40px;  animation-delay: .5s;}
.s3{ right: 120px; bottom: 170px; animation-delay: .9s;}

/* make header/hero darker but readable */
.hero,
header{
  background-color:#101015 !important;
}

/* --- Header uses the same palette as .hero-outer --- */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, #0e0f14 78%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-outer { /* palette already set by you */ }
.site-header .nav-wrap{
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}

/* Brand */
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{width:4rem}
.brand-text{
  font-weight:700; letter-spacing:-.02em; font-size:1.8rem;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: white !important;
  margin-left: 5px;
}

/* Desktop nav */
.main-nav{display:flex; align-items:center; gap:16px;}
.nav-link{
  color:#e9e9f6; text-decoration:none; font-weight:600; position:relative;
  padding:8px 10px; border-radius:8px;
}
.nav-link::after{
  content:""; position:absolute; left:10px; right:10px; bottom:4px; height:2px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.nav-link:hover::after{ transform: scaleX(1); }

/* Buttons */
.btn{
  --grad: linear-gradient(90deg, var(--pink), var(--purple));
  padding:10px 14px; border-radius:999px; text-decoration:none; font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn.-primary{
  background: var(--grad); color:#0e0f14;
  box-shadow: 0 8px 24px rgba(122,44,255,.22);
}
.btn.-primary:hover{ transform: translateY(-1px); }
.btn.-secondary{
  color:#fff; background: color-mix(in oklab, #ffffff 6%, transparent);
}
.btn.-secondary:hover{ background: color-mix(in oklab, #ffffff 12%, transparent); }

/* Toggle */
.nav-toggle{
  display:none; width:42px; height:42px; border-radius:10px;
  background: color-mix(in oklab, #ffffff 6%, transparent);
  border:1px solid rgba(255,255,255,.14);
}
.nav-toggle .bar{display:block; width:22px; height:2px; margin:5px auto;
  background:#fff; border-radius:2px;}

/* Mobile drawer */
.mobile-drawer{
  display:none; flex-direction:column; gap:10px;
  padding:10px 20px 18px; border-bottom:1px solid rgba(255,255,255,.06);
  background: color-mix(in oklab, #0e0f14 85%, transparent);
}
.m-link{ color:#f3f3f8; text-decoration:none; font-weight:700; padding:10px 6px; }
.m-btn{ text-decoration:none; text-align:center; font-weight:800; padding:12px 14px; border-radius:14px;}
.m-btn.-primary{ background: linear-gradient(90deg, var(--pink), var(--purple)); color:#0e0f14; }
.m-btn.-secondary{ color:#fff; background: color-mix(in oklab, #ffffff 8%, transparent); }

#carousel {
  position: relative;
  overflow: hidden;
  min-height: 110px;           /* keeps layout from jumping */
}
#carousel .testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;        /* only the active one can be focused/clicked */
}
#carousel .testimonial.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* suggestions panel toggle */
.styled-dropdown .value-list { display:none; max-height: 60vh; overflow:auto; }
.styled-dropdown .value-list.open { display:block; }

/* hide/show utility */
.section_grid.no-matches { display: none; }

/* clear button inside the input */
.input-container { position: relative; }
.dropdown-clear {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; font-size: 18px; cursor: pointer; line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  #carousel .testimonial { transition: none; }
}

/* Only the "Hi, {user}" button in the main nav */
.main-nav #signed-in-links .user-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;

  background: rgba(255,255,255,.08);
  color: #f6f7fb;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.main-nav #signed-in-links .user-pill:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.main-nav #signed-in-links .user-pill:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122,44,255,.35), 0 8px 24px rgba(0,0,0,.28);
}

/* keep the email from stretching the pill */
#user-email {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- User Pill (Yellow Background) --- */
/* ===== Gold pill: depth + occasional glare ===== */
.user-pill{
  position: relative;
  overflow: hidden;               /* lets the glare stay inside the pill */
  background: #F6FF19 !important;
  color:#0d0f14 !important;
  border: 1px solid rgba(163,100,0,.55);       /* gold edge */
  text-shadow: 0 1px 0 rgba(255,255,255,.35);  /* crisp dark text on gold */

  /* depth + glow */
  box-shadow:
    inset 0 6px 14px rgba(255,255,255,.35),    /* top gloss */
    inset 0 -10px 18px rgba(0,0,0,.18),        /* bottom burn */
    0 10px 24px rgba(255,187,0,.25),           /* ambient gold glow */
    0 0 0 1px rgba(255,212,64,.35);            /* subtle ring */

  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* subtle hover pop */
.user-pill:hover{
  transform: translateY(-1px);
  box-shadow:
    inset 0 7px 16px rgba(255,255,255,.40),
    inset 0 -12px 20px rgba(0,0,0,.2),
    0 14px 30px rgba(255,187,0,.32),
    0 0 0 1px rgba(255,212,64,.45);
}

/* Top arc highlight (always on for “glossy” feel) */
.user-pill::after{
  content:"";
  position:absolute; inset:0;
  border-radius:inherit;
  background:
    radial-gradient(120% 70% at 50% -40%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.28) 35%,
      rgba(255,255,255,0) 60%);
  pointer-events:none;
  mix-blend-mode: screen;
}

/* Sheen sweep (occasional) */
.user-pill::before{
  content:"";
  position:absolute; top:-20%; bottom:-20%;
  left:-130%; width:60%;
  border-radius:inherit;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 12%,
    rgba(255,255,255,.55) 18%,
    rgba(255,255,255,.12) 26%,
    rgba(255,255,255,0) 40%);
  transform: skewX(-20deg);
  animation: pill-sheen 7.5s ease-in-out infinite;
  pointer-events:none;
}

@keyframes pill-sheen{
  0%, 82%   { transform: translateX(0) skewX(-20deg); left:-130%; }
  88%       { left: 120%; }
  100%      { left: 120%; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .user-pill::before{ animation: none; display:none; }
}

/* Impact panel */
.impact-metrics{
  --bg1:#0f1014; --bg2:#161822;
  --card:#1b1e2b; --stroke:#2a2e44;
  --text:#eef1ff; --muted:#a9b0c7;
  --glow: 0 10px 30px rgba(0,0,0,.35);
  margin:64px auto; padding:28px 24px;
  border-radius:24px; background:linear-gradient(180deg,var(--bg1),var(--bg2));
  box-shadow: var(--glow); color:var(--text);
}
.impact-metrics .impact-head{margin:0 0 18px 4px}
.impact-metrics h3{
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing:.4px; margin:0 0 4px;
  color:#ff9130; font-weight:800;
}
.impact-metrics p{margin:0; color:var(--muted); font-weight:500}

/* Grid */
.metrics-grid{
  display:grid; gap:16px; margin-top:16px;
  grid-template-columns: repeat(4,minmax(0,1fr));
}
@media (max-width: 980px){ .metrics-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 520px){ .metrics-grid{grid-template-columns:1fr} }

/* Cards */
.metric-card{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border:1px solid var(--stroke); border-radius:16px;
  padding:20px 18px; position:relative; overflow:hidden;
}
.metric-card::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 180px at -10% -30%, rgba(255,190,0,.09), transparent 60%),
              radial-gradient(600px 180px at 110% 130%, rgba(147,51,234,.09), transparent 60%);
  pointer-events:none;
}

/* Icon */
.metric-icon{
  width:32px; height:32px; display:inline-grid; place-items:center;
  color:#ffd166; opacity:.95; margin-bottom:10px;
}
.metric-icon svg{ width:100%; height:100% }

/* Number */
.metric-value{ display:flex; align-items:baseline; column-gap:.25rem;
  justify-content: center;}
.metric-value .count{
  font: 900 clamp(30px, 5vw, 48px)/1 "Poppins",system-ui,ui-sans-serif;
  letter-spacing:.4px;
  background: linear-gradient(90deg,#ff7a00,#ff2cb3,#9145ff,#21d4fd);
  -webkit-background-clip: text; background-clip:text; color:transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
}
.metric-value .plus, .metric-value .suffix{
  font-weight:800; margin-left:.2rem; color:#ffb3ff;
}

/* Label */
.metric-label{
  margin-top:6px; color:var(--text); opacity:.9;
  font-weight:700; letter-spacing:.2px; line-height:1.2;
}

/* “celebrate” pulse after landing */
.metric-card .celebrate .count{ animation: bop .85s ease-out 1; }
@keyframes bop{
  0%{transform:translateY(0) scale(1)}
  35%{transform:translateY(-2px) scale(1.03)}
  100%{transform:translateY(0) scale(1)}
}

/* =========================================================
   GLOBAL RESPONSIVE (≤1199px → 480px)
   Append to end of stylesheet
   =======================================================*/

/* ≤1199px — tighten large screens just under desktop wide */
@media (max-width: 1199px){
  .logo_text{ font-size:1.75rem; }
  .hero-outer{ height:auto; padding:64px 20px; }
  .hero-wrap{ grid-template-columns: 1.05fr .95fr; gap:36px; }
  .hero-art{ width:min(480px, 86vw); }
  .styled-dropdown{ width:min(560px, 92%); }
  .testimonial-carousel{ width:min(560px, 92%); }
  .section_grid{ grid-template-columns: repeat(3, 1fr); }
  .games-grid{ grid-template-columns: 1fr 1fr; }
  .leaderboard-section{ width:80%; }
  .impact-metrics{ padding: clamp(1.25rem, 2.2vw, 2rem); }
}

/* ≤1024px — tablet landscape / small laptop */
@media (max-width: 1024px){
  .header-container{ padding:16px; }
  .logo__img{ width:56px; }
  .logo_text{ font-size:1.6rem; }
  .menu__link{ font-size:1.05rem; }
  .hero-wrap{ grid-template-columns: 1fr 1fr; gap:28px; }
  .hero-copy h1{ font-size: clamp(2rem, 4.2vw, 3.2rem); }
  .tagline{ font-size:1.05rem !important; }
  .hero-art{ width:min(440px, 88vw); }
  .styled-dropdown{ max-width:480px; }
  .value-list{ top:48px; max-height:300px; }
  .section_grid{ grid-template-columns: repeat(3,1fr); }
  .games-grid{ grid-template-columns: repeat(2,1fr); }
  .points-list li{ flex:1 1 45%; min-width:260px; }
  .leaderboard-section{ width:88%; }
}

/* ≤900px — tablet portrait: stack hero, swap nav */
@media (max-width: 900px){
  .main-nav{ display:none; }
  .nav-toggle{ display:inline-grid; }
  .mobile-drawer{ display:none; }
  .mobile-drawer.open{ display:flex; }

  .hero-wrap{ grid-template-columns:1fr; text-align:center; }
  .hero-visual{ order:-1; min-height:360px; }
  .hero-copy .styled-dropdown,
  .hero-copy .testimonial-carousel{ margin-left:auto; margin-right:auto; width:min(560px, 96%); }
  .section_grid{ grid-template-columns: repeat(2,1fr); }
  .apps_section{ padding: 18px 14px; }
  .game-item{ padding:16px; }
  .game-details h3{ font-size:1.25rem; }
  .game-details p{ font-size:.95rem !important; }
  .freemium-option-card{ width:100%; }
}

/* ≤768px — large phones / small tablets */
@media (max-width: 768px){
  .header-container{ flex-direction:column; gap:10px; text-align:center; }
  .mobile-menu-toggle{ display:block; }
  .mobile-menu.hidden{ display:none !important; }
  .mobile-menu{ display:flex; }

  .hero-copy h1{ font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .tagline{ font-size:1rem !important; }
  .hero-art{ width:min(380px, 92vw); }

  .styled-dropdown{ width:92%; max-width:420px; }
  .value-list{ position:absolute; inset:auto 0 auto 0; width:100%; max-height:60vh; }
  .dropdown-clear{ right:.5rem; }

  .section_grid{ grid-template-columns: 1fr; }
  .games-grid{ grid-template-columns: 1fr; }
  .app_image{ aspect-ratio: 16/9; min-height:auto; max-height:none; }
  .homepage_game_description{ -webkit-line-clamp:4; min-height: calc(1.5em * 4); }

  .points-list{ flex-direction:column; align-items:stretch; gap:14px; }
  .points-list li{ max-width:100%; min-height:auto; }
  .leaderboard-section{ width:92%; }
  .impact-head h3{ font-size:1.6rem; }
  .impact-head p{ font-size:1rem; }
  .metric-value{ font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .metric-label{ font-size: 1rem; }
}

/* ≤640px — phones: tighten typography & paddings */
@media (max-width: 640px){
  .logo__img{ width:50px; }
  .logo_text{ font-size:1.4rem; }
  .menu__link{ font-size:1rem; }
  .subscribe-now-link{ font-size:1.05rem !important; padding:10px 16px; }

  .game-image{ width:120px; height:120px; margin-right:14px; }
  .game-details h3{ font-size:1.15rem; }
  .game-details p{ font-size:.9rem !important; }

  .freemium-options{ flex-direction:column; gap:16px; }
  .freemium-option-card{ padding:22px 16px; }

  .impact-metrics{ padding: 1.25rem; border-radius:14px; }
  .metrics-grid{ grid-template-columns:1fr; }
}

/* ≤520px — small phones: scale hero art and blobs */
@media (max-width: 520px){
  .hero-art{ width:min(320px, 94vw); }
  .blob-pink{ width:220px; height:180px; right:6px; bottom:210px; }
  .blob-purple{ width:240px; height:200px; right:-28px; bottom:38px; }
  .blob-yellow{ width:170px; height:150px; right:130px; bottom:88px; }
  .halo{ width:360px; height:360px; right:0; bottom:0; }
  .styled-dropdown{ max-width:360px; }
}

/* ≤480px — very small phones: single-column, compact text */
@media (max-width: 480px){
  .logo__img{ width:44px; }
  .logo_text{ font-size:1.25rem; }
  .hero-copy h1{ font-size: clamp(1.6rem, 7vw, 2rem); }
  .tagline{ font-size:.95rem !important; }
  .styled-dropdown{ width:100%; max-width: 340px; }
  .chosen-value{ padding: 11px 36px 11px 38px; font-size:.95rem; }
  .value-list li{ font-size:.95rem; padding:9px 10px; }

  .game-item{ padding:12px; }
  .game-image{ width:100px; height:100px; margin-right:12px; }
  .homepage_game_description{ font-size:.9rem; padding: 0 8px 10px; }
  .app_item{ padding:10px; font-size:.9rem; }
  .premium-icon{ font-size:1.3rem; }

  .leaderboard h3{ font-size:1.6rem; }
  #leaderboard-list li{ font-size:1.1rem; }
  footer p{ font-size:.85rem; }
}

/* ≤380px — micro phones: final clamps */
@media (max-width: 380px){
  .logo_text{ font-size:1.15rem; }
  .hero-art{ width:min(280px, 95vw); }
  .styled-dropdown{ max-width: 300px; }
  .game-image{ width:86px; height:86px; }
  .game-details h3{ font-size:1rem; }
  .game-details p{ font-size:.8rem !important; }
}

/* ====== APPENDED: Modern ABZ block (overrides to match mockup) ====== */
:root{
  --abz-hot: linear-gradient(90deg, #FFD500 0%, #FF7A00 28%, #FF2DA0 62%, #7A2CFF 100%);
  --abz-grad-2: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --abz-ink: #0e0f14;
}

/* Page base tint like the mock */
body {
  background: #0f1016;
}

/* Shared card shell */
.surface{
  background:#fff;
  border-radius:28px;
  box-shadow:0 1px 0 rgba(29,27,44,.04), 0 14px 34px rgba(16,24,40,.08);
}

/* WHY section — match mock */
.why-abz{
  padding:36px 28px 28px;
  border-radius:28px;
  box-shadow:0 1px 0 rgba(29,27,44,.04), 0 14px 34px rgba(16,24,40,.08);
  background:#fff;
  max-width:1200px;
  margin:48px auto;
}
.why-abz h2{
  margin:0 0 8px;
  font-size:clamp(1.8rem, 1.2rem + 2.6vw, 2.6rem);
  font-weight:900;
  letter-spacing:-.02em;
  background:var(--abz-hot);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.why-abz .why-sub{ margin:0 0 20px; color:#6b7280; }

.features-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
@media (max-width: 960px){ .features-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width: 560px){ .features-grid{ grid-template-columns:1fr;} }

.feature-card{
  background: radial-gradient(120% 140% at 100% 0%, rgba(122,44,255,.08), rgba(255,255,255,.90)) #fff;
  border:1px solid rgba(122,44,255,.16);
  border-radius:20px;
  padding:16px 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16,24,40,.12), 0 0 0 1px rgba(122,44,255,.14);
  border-color: rgba(122,44,255,.30);
}
.feature-card .icon{
  width:48px; height:48px; border-radius:12px; padding:8px;
  background: var(--abz-grad-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 6px 16px rgba(122,44,255,.18);
}
.feature-card h3{
  margin:10px 0 6px;
  font-size:1.05rem; font-weight:800; letter-spacing:-.005em; color:var(--abz-ink);
}
.feature-card p{ margin:0; color:#444; }

/* IMPACT section (dark band) */
.impact-metrics{
  margin: 44px auto;
  max-width: 1200px;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  background:
    radial-gradient(110% 160% at 12% -20%, rgba(255,179,0,.15), transparent 60%),
    radial-gradient(90% 160% at 88% -10%, rgba(122,44,255,.22), transparent 65%),
    linear-gradient(180deg, #1a1311, #15151c 60%, #12131a);
  color:#fff;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 20px 40px rgba(0,0,0,.25);
}
.impact-head { text-align:left; margin-bottom: 1rem; }
#impact-title,
.impact-head h3{
  background:var(--abz-hot);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight:900;
  letter-spacing:-.02em;
}
.impact-head p{ color: rgba(255,255,255,.78); margin-top:.25rem; font-size:1rem; }

.metrics-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 1024px){ .metrics-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .metrics-grid{ grid-template-columns: 1fr; } }

.metric{
  display:grid; grid-template-columns: 40px 1fr; align-items:center;
  grid-template-rows: auto auto;
  gap:.5rem .75rem; padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.metric-icon{ width:28px; height:28px; grid-row:1 / span 2; opacity:.9; }
.metric-value{
  font-weight: 900; line-height:1;
  font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.4rem);
  background: var(--abz-hot);
  -webkit-background-clip: text; background-clip: text; color:transparent;
}
.metric-label{
  grid-column: 2 / -1; margin-top:.15rem; color: rgba(255,255,255,.85);
  font-weight:600; font-size: 1rem;
}

/* CREATIONS (white slab + two cards) */
#creations-container,
.creations{
  background:#fff; border-radius:28px;
  box-shadow: 0 1px 0 rgba(29,27,44,.04), 0 12px 30px rgba(16,24,40,.06);
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  max-width:1200px; margin: 44px auto;
}
#creations-container::before{
  content:"Your Creations";
  display:block; margin-bottom:.75rem;
  font-weight:900; letter-spacing:-.02em;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  background: var(--abz-hot);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
#creations{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 900px){ #creations{ grid-template-columns: 1fr; } }
#creations .app_item{
  background:#fff; border: 1px solid #ececf2; border-radius:18px; overflow:hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
}
#creations .app_item img{
  width:100%; aspect-ratio: 16/9; object-fit:cover;
  border-radius: 14px; margin: 12px;
}
#creations .app_title{
  font-size:1rem; font-weight:900; color:#0f172a; margin:0 14px 14px;
}
